package com.wuyou.designPatterns.builder;

import com.wuyou.designPatterns.builder.framework.AbstractFootBuilder;
import com.wuyou.designPatterns.builder.framework.Builder;
import com.wuyou.designPatterns.builder.framework.Document;

public class DocumentDirector {


    private AbstractFootBuilder builder;

    private DocumentDirector(){}
    public DocumentDirector(AbstractFootBuilder builder){
        this.builder = builder;
    }

    public Document construct(){
        builder.builderFileName("documentName")
                .builderFileType(".txt")
                .builderTitle("title")
                .builderContent("content")
                .builderFoot("foot");
        return builder.build();
    }


}
